package com.linyx.simpleboot.service;

import java.io.IOException;
import java.io.InputStream;

import org.apache.ibatis.io.Resources;
import org.apache.ibatis.session.SqlSession;
import org.apache.ibatis.session.SqlSessionFactory;
import org.apache.ibatis.session.SqlSessionFactoryBuilder;

public class MybatisTest {
    
//    public static void main(String args[]) throws IOException {
//        String resource = "E:\\Git\\myspringboot\\myspringboot\\target\\classes\\mapper\\RmsSyWpAppInfMapper.xml";
//        InputStream inputStream = Resources.getResourceAsStream(resource);
//        SqlSessionFactory sqlSessionFactory = new SqlSessionFactoryBuilder().build(inputStream);
//        SqlSession session = sqlSessionFactory.openSession();
//        try {
//
//
//        } finally {
//            session.close();
//        }
//    }
}